<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双飞翼布局</title>
    <style>
        body {
            text-align: center;
        }

        .header {
            background-color: #fae8c8;
        }

        .wrapper{
            width: 100%;
            float: left;
        }
        .center {
            background-color: red;
            margin: 0 300px;

            /*主区域可设置高度的*/
             height: 200px;
        }

        .left {
            width: 300px;
            background-color: pink;
            float: left;
            margin-left: -100%;
        }

        .right {
            width: 300px;
            background-color: yellow;
            float: left;
            margin-left: -300px;
        }

        .footer {
            background-color: green;
            clear: both;
        }
    </style>
</head>
<body>
<div class="header">头部</div>
<div class="wrapper">
    <div class="center">主区域</div>
</div>
<div class="left">左区域</div>
<div class="right">右区域</div>
<div class="footer">底部</div>


</body>
</html>